public class Assignment2 {

//print odd numbers 
//						The input array is 3 5 1 8 3 1 7 4 8 11 
//						Odd inputs are 3 5 1 3 1 7 11 
//						
		
	
	public static void main(String[] args) {
		CalcAPI ca = new CalcAPI();
		int userIpArr[] = new int[10];
		for(int i=0;i<10;i++) {
			System.out.println("Enter integer input #" + (i+1));
			userIpArr[i] = ca.getIntInput();			
		}
		System.out.print("The input array is ");
		//System.out.println(userIpArr.toString());
		for(int i=0;i<10;i++) {
			System.out.print(userIpArr[i] + " ");			
		}
		System.out.println();
		System.out.print("Odd inputs are ");
		for(int i=0;i<10;i++) {
			boolean oddCheck = ca.checkIfOdd(userIpArr[i])	;
			if(oddCheck)
				System.out.print(userIpArr[i] + " ");
		}	
	}

}
